/*
 * Author  : Leo <lipf160627@163.com>
 * Created : 2025-8-27
 * Desc    : 
 */

#ifndef __CO_MCU_H__
#define __CO_MCU_H__

#include "stdbool.h"

#include "FreeRTOS.h"
#include "semphr.h"

#ifdef __cplusplus
extern "C" {
#endif

extern SemaphoreHandle_t coMcu_uart1RxSemaphore;

void CoMcu_StartRx(void);
void CoMcu_HandleRx(void);

BaseType_t CoMcu_HandleRxIT(void);

void CoMcu_AckResult(uint8_t cmd, uint8_t srcComponent, bool success);
void CoMcu_AckState(uint8_t cmd, uint8_t srcComponent, uint8_t* data, uint8_t dataLength);

#ifdef __cplusplus
}
#endif

#endif
